import {
  RECEIVE_SHOPS
} from './mutations-types';
import {
  reqShops
} from '../api';

export default {
  // 获取商品列表
  async  getShops({ commit, state }) {
    let result = await reqShops();
    // 提交mutations
    const shops = result;
    commit(RECEIVE_SHOPS, { shops });
  }

};
